import { ApiProperty } from '@midwayjs/swagger';
import { Rule, RuleType } from '@midwayjs/validate';

export class JieBaCutValidator {
  @ApiProperty({
    type: 'string',
    title: 'sentence',
    example: 'hello world',
    description: '句子',
    required: true,
  })
  @Rule(RuleType.string().required())
  sentence: string;
}
